home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 July
/
EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso
/
recent
/
warpup1.lha
/
WarpUP-WarpOS
/
WarpRace
/
ModSrc
/
Memory
/
Read
/
LongRead.p
< prev
next >
Wrap
Text File
|
1997-10-14
|
2KB
|
80 lines
incdir include:
incdir lvo:
incdir powerasm:source/powerpc_lib/warprace/
include exec/memory.i
include powerpc/ppcmacros.i
include powerpc/powerpc.i
include warprace.i
include powerpc_lib.i
xref _PowerPCBase
xref ErrParams
xdef PPCCopy
smalldata
escapestr
section code
LOOPCOUNT = 1000
MEMSIZE = 256*1024
MEMLOOP = 256
PPCCopy
prolog
pushgpr r29-r31
mr r31,r5
liw r4,MEMSIZE*2
liw r5,MEMF_PUBLIC
li r6,0
CALLPOWERPC AllocVecPPC
mr. r30,r3
beq .error
mr r3,r30
bl LongReadPPC
lwz r3,WRI_STARTTIMER_PPC(r31)
mtlr r3
lwz r3,WRI_LINKERDB(r31)
blrl
li r3,MEMLOOP
mtctr r3
.loop
mr r3,r30
bl LongReadPPC
bdnz .loop
lwz r3,WRI_STOPTIMER_PPC(r31)
mtlr r3
lwz r3,WRI_LINKERDB(r31)
blrl
mr r31,r3
mr r4,r30
CALLPOWERPC FreeVecPPC
mr r3,r31
b .end
.error
liw r4,MEMSIZE*2
sw r4,ErrParams
li r3,0
.end
popgpr
epilog
LongReadPPC
mfctr r6
li r5,MEMSIZE>>6
mtctr r5
subi r3,r3,4
.copy
rept 16
lwzu r0,4(r3)
endr
bdnz .copy
mtctr r6
blr